package org.example.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("/goods")
public class GoodsController {

    @GetMapping("index")
    public HashMap<String, String> index(){
        HashMap<String, String> objectObjectHashMap = new HashMap<>();
        objectObjectHashMap.put("code","200");
        objectObjectHashMap.put("message", "ok");
        return objectObjectHashMap;
    }
}
